package com.asiainfo.heshanghui.application;

import android.os.Handler;

import com.framework.Application.FrameApplication;
import com.framework.Utils.Utils;


public class BiuooShareApplication extends FrameApplication {

    // //////////////////
    public static BiuooShareApplication share;
    /**
     * 获取ShareApplication的单例
     *
     * @return ApplicationController singleton instance
     */
    public static synchronized BiuooShareApplication getInstance() {
        return share;
    }


    @Override
    public void onCreate() {
        super.onCreate();
        Utils.h = new Handler();
//        CustomProgressDialogUtils.h = new Handler();
        share = this;
//        initDefaultUncaughtExceptionHandler();
    }

    /**
     * 初始化全局未被捕获的异常
     */
    private void initDefaultUncaughtExceptionHandler() {
        // 设置该MyUncaughtExceptionHandler为程序的默认处理器
        BiuooUncaughtExceptionHandler myUncaughtExceptionHandler = new BiuooUncaughtExceptionHandler(
                this);
        Thread.setDefaultUncaughtExceptionHandler(myUncaughtExceptionHandler);
    }

}
